package com.jxbeidou.gateway.config;

import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.ShearCaptcha;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: jxbeidou-basic
 * @ClassName: CaptchaConfig
 * @description: 验证码配置
 * @author: 杜晓祥
 * @create: 2023-12-27 17:04
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
@Configuration
public class CaptchaConfig {

    @Bean
    public ShearCaptcha shearCaptcha () {
        return CaptchaUtil.createShearCaptcha(110, 40, 4, 2);
    }

}
